﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cmd
{
    public class UniqueCollection<T> : List<T>
    {
        public UniqueCollection()
        {

        }

        internal new void Add(T item)
        {
            if (this.Contains(item))
            {
                return;
            }
            base.Add(item);
        }

        internal new void AddRange(IEnumerable<T> collection)
        {
            foreach (T item in collection)
            {
                this.Add(item);
            }
        }
    }
}
